package com.zhixi.pattern.notimportant.facadepattern;

import com.zhixi.pattern.notimportant.facadepattern.operation.ILetterProcess;
import com.zhixi.pattern.notimportant.facadepattern.operation.LetterProcess;
import com.zhixi.pattern.notimportant.facadepattern.operation.ModenPostOffice;
import com.zhixi.pattern.notimportant.facadepattern.operation.Police;

/**
 * 门面模式/外观模式
 *
 * @作者 ShuHaoNan
 * @邮箱 shuhaonan1@gmail.com
 * @时间 2020/11/18 15:41
 */
public class FacadePattern {

    public static void main(String[] args) {
        Police police = new Police();
        ILetterProcess letterProcess = new LetterProcess();
        ModenPostOffice modenPostOffice = new ModenPostOffice(letterProcess ,police);
        modenPostOffice.sendLetter("你好", "湖北省");

    }

}
